<template>
  <div class="TMB-warp">
    <div class="titler border-bottom">
      <span class="font-w fs16">自動計画</span>
      <i class="el-icon-close" @click="CloseTables"></i>
    </div>
    <div class="middle-box">
      <div class="left-box border-right">
        <div class="row font-w border-bottom fs16">
          計画対象
        </div>
        <div class="row">
          <span class=" font-w mar8">装置</span>
          <span class="gray">
            {{ $store.state.plantName }}
          </span>
        </div>
        <div class="row">
          <span class=" font-w mar8">対象</span> <span class="mar8 gray">{{ $store.state.macType == 1 ?
            $t("message.plan.TBM.label_5") : '配管' }}</span>
        </div>
      </div>
      <div class="right-box">
        <div class="row font-w border-bottom fs16">
          計画設定条件
        </div>

        <div class="row font-w">
          自動設定内容に沿い計画を行います。
        </div>
      </div>
    </div>
    <div class="footer border-top">
      <span class="font-w">上記の内容で良いですか?</span>
      <div>
        <el-button @click="CloseTables">Cancel</el-button>
        <el-button type="primary">OK</el-button>
      </div>
    </div>
  </div>
</template>

<script>
import BASE from '@/utils/base'

export default {
  name: "AUTPlan",
  data() {
    return {
      test: false,
      time: "2022-2",
      timeFormat: "yyyy-MM",


    };
  },
  components: {},
  watch: {},
  methods: {
    CloseTables() {
      this.$emit('CloseTables')
    },
    dateChange(val) {
      console.log(`dateChange(${this.dateValue})`, val);
      //     this.getResOfferEjectDataApi();
    },
  },
  created() { },
  mounted() {
    if (BASE.IP == "http://192.168.33.200:8085") {
      this.timeFormat = "yyyy-MM";
    } else if (BASE.IP == "https://eng-dev-api.a-mis.com") {
      this.timeFormat = "MM-yyyy";
    } else if (BASE.IP == "https://demoapi.richtechcn.com") {
      this.timeFormat = "yyyy-MM";
    }
  },
  beforeDestroy() { },
  destroyed() { }
};
</script>
<style lang="scss" scoped>
.TMB-warp {
  width: 800px;
  height: 240px;
  background: rgb(255, 255, 255);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  box-shadow: 0px 12px 48px 16px rgba(0, 0, 0, 0.05),
    0px 9px 28px 0px rgba(0, 0, 0, 0.08), 0px 6px 16px -8px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.titler {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;

  i {
    cursor: pointer;
  }
}

.middle-box {
  height: calc(100% - 100px);
  display: flex;

  .left-box {
    width: 281px;
    padding: 0 24px;
  }

  .right-box {
    width: calc(100% - 281px);
    padding: 0 24px;
  }

  .row {
    padding: 10px 0;
    display: flex;
    align-items: center;

    .el-input {
      width: 70px;
      height: 32px;

      ::v-deep .el-input__inner {
        width: 70px;
        height: 100%;

      }
    }

    ::v-deep .el-radio__label {
      font-weight: bold;

    }

    .ipt {
      width: 120px !important;
      height: 32px;
      margin-right: 8px;

      ::v-deep .el-input__inner {
        width: 100%;
        height: 32px;
        padding: 0 8px 0 30px;
      }

      // ::v-deep .el-input__inner:focus {
      //   border: 1px solid #dcdfe6;
      // }
      ::v-deep .el-input__icon {
        line-height: 32px;
        color: #909399;
      }

      ::v-deep .el-input__suffix {
        display: none;
      }
    }
  }
}

.footer {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;

  button {
    width: 82px !important;
    height: 32px;
    // background: #ffffff;
    // border: 1px solid #d9d9d9;
    // cursor: pointer;
    line-height: 0;
  }

  button:nth-child(2) {
    margin-left: 16px;
    // color: #ffffff;
    // background: #106ebe;
  }
}

.font-w {
  font-weight: bold;
}

.border-top {
  border-top: 1px solid #f0f0f0;
}

.border-bottom {
  border-bottom: 1px solid #f0f0f0;
}

.border-left {
  border-left: 1px solid #f0f0f0;
}

.border-right {
  border-right: 1px solid #f0f0f0;
}

.gray {
  color: #7B7B7B;
}

.mar8 {
  margin-right: 8px;
}

.fs16 {
  font-size: 16px;
}
</style>
